/* ============ 标记容器 ============ */

.mark-wrapper {
    display: inline-flex;
    align-items: center;
}

/* ============ 标记 ============ */

.mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.mark.mark-default {
    background: #f0f0f0;
    color: var(--text-primary);
    border-color: #d9d9d9;
}

.mark.mark-success {
    background: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.mark.mark-error {
    background: #fff1f0;
    color: #ff4d4f;
    border-color: #ffccc7;
}

.mark.mark-warning {
    background: #fffbe6;
    color: #faad14;
    border-color: #ffe58f;
}

.mark.mark-info {
    background: #e6f7ff;
    color: #1890ff;
    border-color: #91d5ff;
}

/* ============ 大小 ============ */

.mark.mark-small {
    padding: 2px 6px;
    font-size: 11px;
}

.mark.mark-medium {
    padding: 4px 8px;
    font-size: 13px;
}

.mark.mark-large {
    padding: 6px 10px;
    font-size: 15px;
}

/* ============ 内容 ============ */

.mark-content {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mark.mark-small .mark-content {
    max-width: 100px;
}

.mark.mark-medium .mark-content {
    max-width: 150px;
}

.mark.mark-large .mark-content {
    max-width: 200px;
}

/* ============ 关闭按钮 ============ */

.mark-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.mark-close:hover {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.1);
}

.mark.mark-small .mark-close {
    width: 14px;
    height: 14px;
    font-size: 12px;
}

.mark.mark-large .mark-close {
    width: 18px;
    height: 18px;
    font-size: 16px;
}

/* ============ 响应式 ============ */

@media (max-width: 768px) {
    .mark.mark-medium {
        padding: 3px 7px;
        font-size: 12px;
    }

    .mark.mark-large {
        padding: 5px 9px;
        font-size: 14px;
    }

    .mark.mark-small .mark-content {
        max-width: 80px;
    }

    .mark.mark-medium .mark-content {
        max-width: 120px;
    }

    .mark.mark-large .mark-content {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .mark.mark-small {
        padding: 2px 5px;
        font-size: 10px;
    }

    .mark.mark-medium {
        padding: 3px 6px;
        font-size: 11px;
    }

    .mark.mark-large {
        padding: 4px 8px;
        font-size: 13px;
    }

    .mark.mark-small .mark-content {
        max-width: 60px;
    }

    .mark.mark-medium .mark-content {
        max-width: 100px;
    }

    .mark.mark-large .mark-content {
        max-width: 140px;
    }
}
